[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Finds the first item in the list that satisfies the condition
defined by predicate.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public virtual bool TryFind(
Predicate<T> predicate,
out T foundItem
) |
Visual Basic (Declaration) |
---|
Public Overridable Function TryFind ( _
predicate As Predicate(Of T), _
<OutAttribute> ByRef foundItem As T _
) As Boolean |
Parameters
- predicate
- Predicate<(Of <T>)>
A delegate that defines the condition to check for.
- foundItem
- T%
If true is returned, this parameter receives the first item in the list
that satifies the condition defined by predicate.
Return Value
True if an item that satisfies the condition
predicate was found. False
if no item in the list satisfies that condition.
See Also